/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package commonpackage;

/**
 *
 * @author chuda
 */
public class Hosting extends POI {

    private double min_price_night;
    private double max_price_night;
    private int num_available_rooms;
    private boolean lunch_included;

    public Hosting() {
    }

    public Hosting(String type, String name, String descr, String address, String telephone, boolean order, Position pos,
            double min_price_n, double max_price_n, int num_av_r, boolean lunch) {
        super(type,name, descr, address, telephone, order, pos);
        this.min_price_night = min_price_n;
        this.max_price_night = max_price_n;
        this.num_available_rooms = num_av_r;
        this.lunch_included = lunch;
    }

    /**
     * @return the min_price_night
     */
    public double getMin_price_night() {
        return min_price_night;
    }

    /**
     * @param min_price_night the min_price_night to set
     */
    public void setMin_price_night(double min_price_night) {
        this.min_price_night = min_price_night;
    }

    /**
     * @return the max_price_night
     */
    public double getMax_price_night() {
        return max_price_night;
    }

    /**
     * @param max_price_night the max_price_night to set
     */
    public void setMax_price_night(double max_price_night) {
        this.max_price_night = max_price_night;
    }

    /**
     * @return the num_available_rooms
     */
    public int getNum_available_rooms() {
        return num_available_rooms;
    }

    /**
     * @param num_available_rooms the num_available_rooms to set
     */
    public void setNum_available_rooms(int num_available_rooms) {
        this.num_available_rooms = num_available_rooms;
    }

    /**
     * @return the lunch_included
     */
    public boolean isLunch_included() {
        return lunch_included;
    }

    /**
     * @param lunch_included the lunch_included to set
     */
    public void setLunch_included(boolean lunch_included) {
        this.lunch_included = lunch_included;
    }

    public String toString() {

        /*this.min_price_night = min_price_n;
        this.max_price_night = max_price_n;
        this.num_available_rooms = num_av_r;
        this.lunch_included = lunch;*/

        String ret = super.toString() + "#";

        ret += this.min_price_night + "#" + this.max_price_night + "#" + this.num_available_rooms + "#" + this.lunch_included;


        return ret;

    }
}
